package com.study.web.datasource;

/**  
 * All rights Reserved, Designed By yaojinshan
 * @Title:  DatabaseContextHolder.java   
 * @Package com.study.web.datasource   
 * @Description:    TODO   
 * @author: yaojinshan     
 * @date:   2018年7月17日 下午1:23:00   
 * @version V1.0 
 * @Copyright: 2018 All users All rights reserved. 
 * 注意：注意：本内容仅限于学习springmvc + spring + maven + mybatis学习使用 
 */
public class DatabaseContextHolder {
	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();  
	  
    public static void setCustomerType(String customerType) {  
        contextHolder.set(customerType);  
    }  
  
    public static String getCustomerType() {  
        return contextHolder.get();  
    }  
  
    public static void clearCustomerType() {  
        contextHolder.remove();  
    }  
}
